// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 引用字体图标
import'./assets/css/iconfont.css'

Vue.config.productionTip = false
// 引用css
import './assets/css/reset.css'
 // 引入FastClick
import FastClick from 'fastclick'
// 使用
FastClick.attach(document.body);

import VueAwesomeSwiper from 'vue-awesome-swiper'

// require styles
import 'swiper/dist/css/swiper.css'
// 引入axios
import axios from 'axios'
// 引入vuex
import store from './store'
Vue.prototype.$http=axios
Vue.use(VueAwesomeSwiper)
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
}),
router.afterEach((to,from,next)=>{
	window.scrollTo(0,0);

})
